﻿using SqlSugar;

namespace Bigway.Common.Interfaces;

/// <summary>
/// A marker class for DI/IoC
/// </summary>
public class SqliteConnectionConfig: ConnectionConfig
{
    public SqliteConnectionConfig()
    {
        ConfigId = IocKeys.SqliteDbKey;
        DbType = DbType.Sqlite;
        IsAutoCloseConnection = true;
        InitKeyType = InitKeyType.Attribute;
        AopEvents ??= new AopEvents();
    }
}